package com.eyaomall.wxmanage;

import com.lycheeframework.mapping.MappingRuning;
import com.lycheeframework.mapping.db.Engine;

public class Test {

	public static void main(String[] args) {
		String url = "jdbc:mysql://118.178.18.202:3306/SASS?characterEncoding=utf8";
		String userName = "root";
		String passwd = "123456";
		String beanPath = "/Users/pro/Downloads/tmp/";
		String sqlmapPath = "/Users/pro/Downloads/tmp/";
		String packageName = "com.eyaomall.wxmanage.model.po";
		
		MappingRuning runing = new MappingRuning(Engine.mysql, url, userName, passwd);
		runing.generate("M_ADDRESS", beanPath, sqlmapPath, packageName);
		runing.generate("M_AREA", beanPath, sqlmapPath, packageName);
		runing.generate("M_ARTICLE", beanPath, sqlmapPath, packageName);
		runing.generate("M_ARTICLE_CATEGORY", beanPath, sqlmapPath, packageName);
		runing.generate("M_CATEGORY", beanPath, sqlmapPath, packageName);
		runing.generate("M_COLLECT", beanPath, sqlmapPath, packageName);
		runing.generate("M_COODS_CATEGORY", beanPath, sqlmapPath, packageName);
		runing.generate("M_DEPOSIT", beanPath, sqlmapPath, packageName);
		runing.generate("M_DISCOUNT_GOODS", beanPath, sqlmapPath, packageName);
		runing.generate("M_DISCOUNT_RELATION", beanPath, sqlmapPath, packageName);
		runing.generate("M_EMPLOYEE", beanPath, sqlmapPath, packageName);
		runing.generate("M_EMPLOYEE_DEPOSIT", beanPath, sqlmapPath, packageName);
		runing.generate("M_GOODS", beanPath, sqlmapPath, packageName);
		runing.generate("M_GOODS_TRANSPORT", beanPath, sqlmapPath, packageName);
		runing.generate("M_MALL_DESC", beanPath, sqlmapPath, packageName);
		runing.generate("M_MALL_IMAGES", beanPath, sqlmapPath, packageName);
		runing.generate("M_MATERIA", beanPath, sqlmapPath, packageName);
		runing.generate("M_MATERIA_GROUP", beanPath, sqlmapPath, packageName);
		runing.generate("M_MEMBRE", beanPath, sqlmapPath, packageName);
		runing.generate("M_MERCHANTS", beanPath, sqlmapPath, packageName);
		runing.generate("M_ORDER", beanPath, sqlmapPath, packageName);
		runing.generate("M_ORDER_GOODS", beanPath, sqlmapPath, packageName);
		runing.generate("M_RESOURCE", beanPath, sqlmapPath, packageName);
		runing.generate("M_SHOP", beanPath, sqlmapPath, packageName);
		runing.generate("M_SHOPPING_CHART", beanPath, sqlmapPath, packageName);
		runing.generate("M_SHOP_EXT", beanPath, sqlmapPath, packageName);
		runing.generate("M_SHOP_PAYMENT_RECORD", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SMS", beanPath, sqlmapPath, packageName);
		runing.generate("M_STORES", beanPath, sqlmapPath, packageName);
		runing.generate("M_TRANS_TEMPLATE", beanPath, sqlmapPath, packageName);
		runing.generate("M_TRANS_TEMPLATE_CITY", beanPath, sqlmapPath, packageName);
		runing.generate("M_USER", beanPath, sqlmapPath, packageName);
		runing.generate("M_WX_MEMBER", beanPath, sqlmapPath, packageName);
		runing.generate("M_WX_MENU", beanPath, sqlmapPath, packageName);
	}

}
